package com.foreknow.dao;

import com.foreknow.bean.Employee;

import java.util.HashMap;
import java.util.List;

public interface EmployeeMapper {
    /**
     * 根据id查询员工对象
     * @param id
     * @return
     */
    public Employee selectEmployeeWithId(Integer id);

    /**
     * 根据params查询员工信息
     * @param params
     * @return
     */
    public List<Employee> selectEmployeeByIdLike(HashMap<String,Object> params);

    /**
     * choose....when
     * @param params
     * @return
     */
    public List<Employee> selectEmployeeChoose(HashMap<String,Object> params);

    /**
     * where
     * @param params
     * @return
     */
    public List<Employee> selectEmployeeLike(HashMap<String,Object> params);

    /**
     * set
     * @param employee
     */
    public void updateEmployeeIfNecessary(Employee employee);

    /**
     * foreach
     * @param ids
     * @return
     */
    public List<Employee> selectEmployeeIn(List<Integer> ids);
}
